<div class="comment" id="c<?php echo $data->id; ?>">

	<?php echo CHtml::link("#{$data->id}", $data->url, array(
		'class'=>'cid',
		'title'=>BlogModule::t('Permalink to this comment'),
	)); ?>

	<div class="author">
        <?php echo BlogModule::t('{author} says on {post_link}', array(
                    '{author}'=>$data->authorLink,
                    '{post_link}'=>CHtml::link(CHtml::encode($data->post->title), $data->post->url)));
        ?>
	</div>

	<div class="time">
		<?php if($data->status==Comment::STATUS_PENDING): ?>
			<span class="pending"><?php echo BlogModule::t('Pending approval');?></span> |
			<?php echo CHtml::linkButton(BlogModule::t('Approve'), array(
				'submit'=>array('comment/approve','id'=>$data->id),
			)); ?> |
		<?php endif; ?>
		<?php echo CHtml::link(BlogModule::t('Update'),array('comment/update','id'=>$data->id)); ?> |
		<?php echo CHtml::linkButton(BlogModule::t('Delete'), array(
			'submit'=>array('comment/delete','id'=>$data->id),
			'confirm'=>BlogModule::t('Are you sure to delete comment #{id}?', array('{id}'=>$data->id)),
		)); ?> |
		<?php echo Yii::app()->dateFormatter->format("M MMMM yyyy \t HH:mm:ss",$data->create_time); ?>
	</div>

	<div class="content">
		<?php echo nl2br(CHtml::encode($data->content)); ?>
	</div>

</div><!-- comment -->
